<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Vue.js</title>
	<script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
    <div id="app">
        <h1>site : {{site}}</h1>
        <h1>url : {{url}}</h1>
        <h1>{{details()}}</h1>
    </div>
    <script type="text/javascript">
        var vm = new Vue({
            el: '#app',
            data: {
                site: "Hello Vue.js",
                url : "wwww.baidu.com"
            },
            methods:{
                details: function() {
                	return this.site + " - 学的不仅是技术，更是梦想！";
                }
            }
        })
    </script>
</body>
</html>
